home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7457 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.itg.ti.com!usenet
  2. From: Lloyd Charlier <LCharlier@ti.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Directory deletion...
  5. Date: Mon, 26 Feb 1996 12:58:24 -0600
  6. Organization: Texas Instruments Incorporated
  7. Distribution: world
  8. Message-ID: <313202D0.388E@ti.com>
  9. NNTP-Posting-Host: charlier.itg.ti.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
  14.  
  15. Does anyone have a code snippet enabling the absolute deletion
  16. of a directory WITHOUT regard to its contents?  I am writing an
  17. installation program that is updating a previous version of
  18. client software and I would like to completely purge certain
  19. sub-directories "DEEP" in order to ensure a clean install.  I
  20. cannot explicitly delete every file and then remove the
  21. directories as I am not privy to the contents of each directory.
  22. I know I could build a list of all of the files using
  23. findfirst/findnext but I do not wish to re-invent the wheel.
  24. Any help would be greatly appreciated.
  25.  
  26. ** Please respond via e-mail if at all possible (I am not
  27. able to check this newsgroup often...).
  28.  
  29. Regards,
  30.  
  31. Lloyd A. Charlier
  32. Information Delivery
  33. Enterprise Computing Provisioning (ECP)
  34. Texas Instruments Incorporated
  35.  
  36. E-mail: LCharlier@ti.com
  37.  Phone: (214) 575-2052
  38.  Pager: (214) 581-9877
  39.    Fax: (214) 575-4853
  40.